﻿namespace ExpressesClass.Model
{
    public class Sender
    {
        public string Name { get; set; }
        public string Phone { get; set; }
        public string Address { get; set; }
        public string Postcode { get; set; }
        public string Province { get; set; }
        public string City { get; set; }
        public string County { get; set; }
        /// <summary>
        /// 比较方法
        /// </summary>
        /// <param name="obj"></param>
        /// <returns></returns>
        public override bool Equals(object obj)
        {
            Sender others = (Sender)obj;
            return this.Name == others.Name && this.Phone == others.Phone && this.Address == others.Address;
        }
        /// <summary>
        /// 比较方法
        /// </summary>
        /// <returns></returns>
        public override int GetHashCode()
        {
            return base.GetHashCode();
        }
    }
}
